<?php



    
// make sure only logged in users can see this page	
gatekeeper();

 
//// add the form to this section
//
//$content = "<div class = \"content\"> <!-- container all menu and main_content -->";
//
//$content .= elgg_view_form("MyCourse/menuLesson");
//$len = strlen($content);
//$content = substr($content,0, $len - 18);
//
//$content .="<div class = \"main_content\">";
//$content .= elgg_view_form("MyCourse/menuItem");
//$len = strlen($content);
//$content = substr($content,0, $len - 18);
//
//$content .= elgg_view_form("MyCourse/courseContend");
//
//$content .="</div> <!-- End main_content -->";
//$content .="</div> <!-- End content -->";
//
//$content .="</fieldset> </form> <!-- End content -->";
//// layout the page
//$body = elgg_view_layout('one_column', array(
//    'content' => $content,
//        ));



// add the form to this section

$content = "<div class = \"content\"> <!-- container all menu and main_content -->";

$content .= elgg_view("MyCourse/menuLesson");
//$len = strlen($content);
//$content = substr($content,0, $len - 18);

$content .="<div id = \"main_content\">";


$content .= elgg_view("MyCourse/courseContend");


$content .="</div> <!-- End main_content -->";
$content .="</div> <!-- End content -->";

// layout the page
$body = elgg_view_layout('one_column', array(
    'content' => $content,
        ));

// draw the page
echo elgg_view_page($title, $body);
?>